﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = Weapons
		Group                          = MagneticWeapons
		Size                           = Medium
		Module                         = iskio-magnetor medium gauss gun
		CpuUsage                       = 29.00 TF
		ReactorUsage                   = 135.00 RP
		Type                           = Active
		Slot                           = Turret
		TechnologicalLevel             = T2
		Mass                           = 450.00 kg
		PackedVolume                   = 0.50 U
		Volume                         = 1.00 U
		AccumulatorConsumption         = 12.00 AP
		CycleTime                      = 6.00 sec
		OptimalRange                   = 150 m
		Falloff                        = 75 m
		AmmoChargeType                 = Medium slugs
		AmmoChargeCapacity             = 60 pcs
		Damage                         = 170 %
		HitDispersion                  = 10.00 •
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Iskio-Magnetor medium Gauss gun module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:56</remarks>
    public sealed class IskioMagnetorMediumGaussGun : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="IskioMagnetorMediumGaussGun"/> class.
        /// </summary>
        public IskioMagnetorMediumGaussGun()
            : base(
            "Iskio-Magnetor medium Gauss gun",
            "",
            ModuleMetaGroupsEnum.Weapons,
            ModuleGroupsEnum.MagneticWeapons,
            TechnologyLevelsEnum.Level2,
            SizesEnum.Medium,
            new LazyFeature[] { 
				new LazyFeature(typeof(WeaponCpuUsage<double>),29.00),
				new LazyFeature(typeof(WeaponReactorUsage<double>),135.00),
				new LazyFeature(typeof(ModuleMass<double>),450.00),
				new LazyFeature(typeof(WeaponAccumulatorUsage<double>),12.00),
				new LazyFeature(typeof(AmmunitionType<AmmunitionTypesEnum>),AmmunitionTypesEnum.MediumSlugs),
				new LazyFeature(typeof(AmmoCapacity<double>),60),
				new LazyFeature(typeof(MediumMagneticWeaponCycleTime<double>),6.00),
				new LazyFeature(typeof(MediumMagneticWeaponOptimal<double>),150),
				new LazyFeature(typeof(MediumMagneticWeaponFalloff<double>),75),
				new LazyFeature(typeof(MediumMagneticWeaponDamage<double>),170),
				new LazyFeature(typeof(MediumMagneticWeaponHitDispersion<double>),10.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 450.00 ){ IsVisible = false }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Active; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Chassis; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Turret; }
        }
    }
}